<template>
	<view class="content ffffff mainpadding">
		<view class="paddinglr">
			<u-parse :content="content"></u-parse>
		</view>
		<view class="flexcenter margin_top" v-if="!content">
			<image src="/static/placeholderimg.png" mode=""></image>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				content:""
			}
		},
		onLoad() {
			this.getText()
		},
		methods:{
			async getText() { //篩選信息
				let _this = this
				let res = await this.http.request('/api/index/getText', 'GET', {
					type:1
				})
				if (res.code == 1) {
					_this.content=res.data
				} else if (res.code == 0) {
					this.http.toast(res.msg);
				} else {
					this.http.toast('系統處理中，請稍後再試');
				}
			},
		}
	}
</script>

<style lang="scss" scoped>
</style>